package com.car.service.custormer;


import com.car.dao.custormer.BlackListDao;
import com.car.entity.Custormer;
import com.car.service.custormer.BlackListService;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


/**
 * @Author: 贾勇
 * @ClassName BlackListServiceImpl
 * @Description:黑名单列表
 * @DateTime: 2021-12-03 10:49
 */
@Service
public class BlackListServiceImpl implements BlackListService {

    @Setter
    @Getter
    @Autowired
    private BlackListDao blackListDao;


    @Override
    public List<Custormer> getAllBlackList(Map<String, Object> map) {
        List<Custormer> custormerList = blackListDao.getAllBlackList(map);
        return custormerList;
    }

    @Override
    public Integer getBlackListCount(Map<String, Object> map) {
        return blackListDao.getBlackListCount(map);
    }

    @Override
    public Integer addBlackList(Custormer custormer) {
        return blackListDao.addBlackList(custormer);
    }

    @Override
    public Integer delBlackList(int custormerId) {
        return blackListDao.delBlackList(custormerId);
    }

    @Override
    public Integer updateBlackList(Custormer custormer) {
        return blackListDao.updateBlackList(custormer);
    }

    @Override
    public Custormer getById(int custormerId) {
        return blackListDao.getById(custormerId);
    }

}
